package com.mimc.framework.core;

import javax.servlet.http.HttpServletRequest;

public abstract class RequestContextHolder {
    private static ThreadLocal<HttpServletRequest> threadLocal = new ThreadLocal<HttpServletRequest>();

    public static void set(HttpServletRequest value) {
        threadLocal.set(value);
    }

    public static HttpServletRequest get() {
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
